package com.eascs.archive.service.impl;


import org.springframework.beans.factory.annotation.Autowired;
import com.alibaba.dubbo.config.annotation.Service;
import com.eascs.admin.common.vo.ModelResult;
import com.eascs.app.dao.PageResult;
import com.eascs.app.log.Logger;
import com.eascs.app.log.LoggerFactory;
import com.eascs.archive.dao.ArchiveAdminDao;
import com.eascs.archive.entity.ArchiveLoanEntity;
import com.eascs.archive.service.ArchiveAdminService;

@Service
public class ArchiveAdminServiceImpl implements ArchiveAdminService{
	protected final Logger logger = LoggerFactory.getLogger(getClass());

	@Autowired
	private ArchiveAdminDao archiveAdminDao;

	@Override
	public ModelResult<PageResult<Object[]>> queryListPage(ArchiveLoanEntity entity, int pageSize,int pageIndex) {
		try {
			ModelResult<PageResult<Object[]>> modelResult=new ModelResult<>();
			PageResult<Object[]> pageResult=archiveAdminDao.queryListPage(entity, pageSize, pageIndex);
			modelResult.setModel(pageResult);
			return modelResult;
		} catch (Exception e) {
		}
		return null;
	}

	@Override
	public ModelResult<PageResult<Object[]>> repeatGdList(ArchiveLoanEntity entity, int pageSize, int pageIndex) {
		try {
			ModelResult<PageResult<Object[]>> modelResult=new ModelResult<>();
			PageResult<Object[]> pageResult=archiveAdminDao.repeatGdList(entity, pageSize, pageIndex);
			modelResult.setModel(pageResult);
			return modelResult;
		} catch (Exception e) {
		}
		return null;
	}

	
}
